package com.syxd.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.syxd.common.entity.BaseEntity;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 *
 *
 */
@Data
@Builder
@EqualsAndHashCode(callSuper=false)
@TableName("sys_role_permission")
public class SysRolePermissionEntity extends BaseEntity {
	private static final long serialVersionUID = 1L;

	@TableId
	private Long id;
    /**
     * 角色id
     */
	private Long sysRoleId;
    /**
     * 权限id
     */
	private Long sysPermissionId;
    /**
     * 状态（0：正常，1：删除）
     */
    @TableLogic
	private Integer isDelete;
    /**
     * 创建时间
     */
	private Date createTime;
    /**
     * 更新时间
     */
	private Date updateTime;
    /**
     * 创建人id
     */
	private Integer createBy;
    /**
     * 更新人id
     */
	private Integer updateBy;

}
